import request from '@/utils/request'
export function companyDepartments () {
  return request({
    url: '/company/department'
  })
}
// 获取员工简单数据
export function sysUserSimple () {
  return request({
    url: '/sys/user/simple'
  })
}
// 新增部门
export function companyDepartment (data) {
  return request({
    method: 'post',
    url: '/company/department',
    data
  })
}
// 修改部门信息
export function editDepartment (data) {
  return request({
    url: '/company/department/' + data.id,
    method: 'put',
    data
  })
}
// 删除部门
export function deleteDepartment (id) {
  return request({
    url: `/company/department/${id}`,
    method: 'delete'
  })
}
